package me.magicall.db.sql.condition;

import me.magicall.db.sql.Operator;

public enum ConditionsOperator implements Operator<OneCondition> {

	AND, //
	OR, //
	;

	private final String sql;

	private ConditionsOperator() {
		sql = " " + name() + " ";
	}

	@Override
	public String toSql() {
		return sql;
	}

	@Override
	public StringBuilder appendTo(final StringBuilder sb) {
		return sb.append(sql);
	}
}